package com.doeis.core.db;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

public class DBInterceptor implements MethodInterceptor {
	public Object invoke(MethodInvocation invocation) throws Throwable {
		Object res = null;
		try {
			res = invocation.proceed();
		} catch (Exception e) {
			throw e;
		} finally {
			DBManager.closeAllBindConnection();
		}
		return res;
	}
}